﻿using UnityEngine;
using System.Collections;

public class TouchControl : MonoBehaviour 
{
  void Update()
  {
    if (Input.GetButton("Fire1"))
    {
      GlobalSetting.Turn = true;
      if(Input.mousePosition.x < Screen.width * 0.5f)
      {
        GlobalSetting.Direction = GlobalSetting.TurnDirection.Right;
      }
      else 
      {
        GlobalSetting.Direction = GlobalSetting.TurnDirection.Left;
      }
    }
    else
    {
      GlobalSetting.Turn = false;
    }
  }
}
